package com.ndp.fb.rdb.db.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ndp.fb.rdb.api.TargetingSpecRdbService;
import com.ndp.fb.rdb.db.DaoTemplate;
import com.ndp.fb.rdb.model.TargetingSpec;

import java.util.List;

/**
 * Created by Evan on 2015/3/20.
 */
@Service
public class TargetingSpecRdbServiceImpl extends DaoTemplate implements TargetingSpecRdbService {

    @Override
    public Long save(TargetingSpec obj) {
        return saveResultId(obj);
    }

    @Override
    public List<Long> save(List<TargetingSpec> obj) {
        return batchSaveResultId(obj);
    }
}
